package com.changgou.order.controller;

import com.changgou.entity.Result;
import com.changgou.user.feign.UserFeign;
import com.changgou.user.pojo.Info;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * InfoController  TODO
 * 13418  computer
 *
 * @author zhougang
 * @date 2020/4/26 22:18
 */
@Controller
@RequestMapping("/winfo")
public class InfoController {

    @Autowired
    private UserFeign userFeign;

    @PostMapping("/add")
    @ResponseBody
    public Result add(@RequestBody Info info) {
        Result result = userFeign.add(info);
        return result;
    }

}
